/**
 * OPSettlementTBL.java
 * @author pkendzo
 * Email: pkendzo@msn.com
 * 2010
 */
package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * @author pkendzo
 *
 */
@NamedQueries
({
  /*  @NamedQuery(name="getAvailableOPSettlementCodeByClass",
	       query="select co from OPSettlementTBL co where settlement_class ="
				    + ":class"
				    + " order by code_label desc"),*/
				    
   @NamedQuery(name="getAvailableOPSettlementCode",
	       query="select co from OPSettlementTBL co order by code_label desc")
})
@Entity
@Table(name = "PRAXIS_ABRECHNUNGSCODE")
public class OPSettlementTBL implements Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = -942966705722593685L;
    
    @Id
    @Column(name = "CODE")
    private String code_label;
    
    @Column(name = "BESCHREIBUNG", nullable = true)
    private String description;
    
    /*
     * The settlement factor, which will be use to 
     * calculate the amount of a OP-Bill.
     * The value of a factor depend of the choosen settlement class
     */
    @Column(name = "ABRECHNUNGSFAKTOR", nullable = true)
    private float factor;
    
    /*
     * The class of a settlement
     */
  /*  @Column(name = "KLASSE", nullable = true)
    private int settlement_class;*/
    
    public OPSettlementTBL()
    {
	
    }

    /**
     * @return the code_label
     */
    public String getCode_label()
    {
        return code_label;
    }

    /**
     * @param code_label the code_label to set
     */
    public void setCode_label(String code_label)
    {
        this.code_label = code_label;
    }

    /**
     * @return the description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description)
    {
        this.description = description;
    }

    /**
     * @return the factor
     */
    public float getFactor()
    {
        return factor;
    }

    /**
     * @param factor the factor to set
     */
    public void setFactor(float factor)
    {
        this.factor = factor;
    }

    /**
     * @return the settlement_class
     */
 /*   public int getSettlement_class()
    {
        return settlement_class;
    }*/

    /**
     * @param settlement_class the settlement_class to set
     */
   /* public void setSettlement_class(int settlement_class)
    {
        this.settlement_class = settlement_class;
    }
    */
    

}
